package com.yoso.core.enums;

import com.yoso.core.enums.AbstractEnum;

public enum CoreException implements AbstractEnum {
    //<editor-fold desc="JWT">
    EMPTY_JWT_ISSUER(10010, "JWT issuer不能为空"),
    //</editor-fold>

    DEMO(10086, "demo");

    private final int code;
    private final String message;


    CoreException(int code, String message) {
        this.code = code;
        this.message = message;
    }

    /**
     * 获取异常的状态码
     */
    @Override
    public int getCode() {
        return code;
    }

    /**
     * 获取异常的提示信息
     */
    @Override
    public String getMessage() {
        return message;
    }
}
